package com.orphan.marketBack.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.orphan.marketBack.po.OrderGoods;
import com.orphan.marketBack.po.OrderReturn;
import com.orphan.marketBack.po.ReturnOrder;
import com.orphan.marketBack.po.Stock;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StockMapper extends BaseMapper<Stock> {
    @Override
    int insert(Stock stock);
    List<Stock> getStock();
    Stock selectStock(String stockId);
    int updateStock(OrderReturn orderReturn);
    int deleteStock(String goodsName);
    int deductionStock(OrderGoods goods);
    Stock selectStockByName(OrderGoods goods);
}
